package com.eos.orm.mybatis.dao.impl;

import java.util.ArrayList;
import java.util.List;

import org.apache.ibatis.session.SqlSession;

import com.eos.orm.mybatis.dao.SysCityMapper;
import com.eos.orm.mybatis.model.SysCity;
import com.eos.orm.mybatis.model.SysCityExample;

/**
 * sys_city地市表的CURD操作
 * 
 * @author sz
 * 
 */
public class SysCityMapperImpl extends AbstractSqlSessionFactory implements
		SysCityMapper {

	public int countByExample(SysCityExample example) {
		return 0;
	}

	public int deleteByExample(SysCityExample example) {
		return 0;
	}

	public int deleteByPrimaryKey(Integer id) {
		return 0;
	}

	public int insert(SysCity record) {
		return 0;
	}

	public int insertSelective(SysCity record) {
		return 0;
	}

	public List<SysCity> selectByExample(SysCityExample example) {
		List<SysCity> templist = new ArrayList<SysCity>();
		SqlSession session = sqlSessionFactory.openSession();
		try {
			SysCityMapper mapper = session.getMapper(SysCityMapper.class);
			templist = mapper.selectByExample(example);
			mapper = null;
		} catch (Exception e) {
			System.out
					.println("com.eos.orm.mybatis.dao.impl.SysCityMapperImpl.selectByExample throws exception:"
							+ e.getMessage());
		} finally {
			session.close();
		}
		return templist;
	}

	public SysCity selectByPrimaryKey(Integer id) {
		return null;
	}

	public int updateByExample(SysCity record, SysCityExample example) {
		return 0;
	}

	public int updateByExampleSelective(SysCity record, SysCityExample example) {
		return 0;
	}

	public int updateByPrimaryKey(SysCity record) {
		return 0;
	}

	public int updateByPrimaryKeySelective(SysCity record) {
		return 0;
	}

}
